﻿<Window x:Class="EverUTestApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        xmlns:V3DI="clr-namespace:EveruWPF.Windows.V3D;assembly=EveruWPF"
        >
    <Grid x:Name="LayoutRoot" Margin="0,15,0,0" Background="White">
        <Viewport3D V3DI:V3DInteraction.ListenInteraction="True">
            <Viewport3D.Camera>
                <PerspectiveCamera Position="0,0,-10" LookDirection="0,0.5,10" UpDirection="0,1,0" FieldOfView="15" />
            </Viewport3D.Camera>
            
            <ModelVisual3D>
                <ModelVisual3D.Content>
                    <Model3DGroup>
                        <Model3DGroup.Children>
                            <AmbientLight Color="White" />

                            <GeometryModel3D x:Name="Gm3d">
                                <GeometryModel3D.Material>
                                    <DiffuseMaterial Brush="Wheat" />
                                </GeometryModel3D.Material>
                                <GeometryModel3D.BackMaterial>
                                    <DiffuseMaterial Brush="Red" />
                                </GeometryModel3D.BackMaterial>
                                
                                <GeometryModel3D.Geometry>
                                    <MeshGeometry3D Positions="-1 0 0.001, 0 1 0, 1 0 0" TriangleIndices="0 1 2" />
                                </GeometryModel3D.Geometry>
                                
                            </GeometryModel3D>

                            <GeometryModel3D x:Name="Gm3d2">
                                <GeometryModel3D.Material>
                                    <DiffuseMaterial Brush="Black" />
                                </GeometryModel3D.Material>
                                <GeometryModel3D.BackMaterial>
                                    <DiffuseMaterial Brush="Red" />
                                </GeometryModel3D.BackMaterial>

                                <GeometryModel3D.Geometry>
                                    <MeshGeometry3D Positions="-0.5 0 0, 0.5 1 0, 1.5 0 0" TriangleIndices="0 1 2" />
                                </GeometryModel3D.Geometry>

                            </GeometryModel3D>

                        </Model3DGroup.Children>
                    </Model3DGroup>
                </ModelVisual3D.Content>
            </ModelVisual3D>
        </Viewport3D>
        <!--<Button Click="Button_Click" />-->
    </Grid>
</Window>
